adTempus API
PreviousUpNext
ISecurityDescriptor::RemoveAceForSid Method

Removes the ACE for the entity with the specified SID

C++
HRESULT RemoveAceForSid(VARIANT sid, long flags);
C#
RemoveAceForSid(VARIANT sid, long flags);
Visual Basic
Sub RemoveAceForSid(sid As VARIANT, flags As long)

If the SID cannot be resolved the method fails with error ADT_E_NOT_FOUND. 

If the descriptor does not have an ACE for the entity, the function succeeds with return S_FALSE.

adTempus API Reference version 3.0.0.0, revised 10/30/2008